{if $mode=="Remove"}
  {assign var='disabled' value="disabled=\"disabled\""}
{else}
  {assign var='disabled' value=""}
{/if}
<p><label for="name">Name</label>
   <input type="text" name="name" id="name" maxlength="20" value="{$map->name}" {$disabled}/>
   <small class="hint">The name hint goes here</small></p>
   
<p><label for="table">Table</label>
   <select name="table" id="table" {$disabled}>{html_options values=$_tables output=$_tables selected=$map->table}</select>
   <small class="hint">The table hint goes here</small></p>

<p><label for="form">Form</label>
   <select name="form" id="form" {$disabled}>{html_options values=$_forms output=$_forms selected=$map->form}</select>
   <small class="hint">The form hint goes here</small></p>

{if !$removed}
<p><input type="submit" value="{$mode} this Binding" />
   {if $mode!="Remove"}<input type="reset" value="Reset" />{/if}</p>
{/if}